/*
 * @Description: 实名认证
 * @Author: iamsmiling
 * @Date: 2021-05-28 21:35:35
 * @LastEditTime: 2021-05-29 07:27:47
 */
import 'package:credit_business_circle/pages/mine/children/auth/auth_controller.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/real_name_auth_status/section/real_name_auditing_section.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/real_name_auth_status/section/real_name_auth_fail_section.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/real_name_auth_status/section/real_name_auth_success_section.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class RealNameAuthStatsuController extends GetxController {
  Map<AuthStatus, Widget> map = {
    AuthStatus.auditing: RealNameAuditingSection(),
    AuthStatus.success: RealNameAuthSuccessSection(),
    AuthStatus.fail: RealNameAuthFailSection()
  };

  AuthStatus status = Get.arguments;
  Widget get child => map[status] ?? SizedBox.shrink();

  List<String> failReasons = [
    "1、证件电子信息核验不合格",
    "2、注册者证件类型选择错误或证件号码位数不正确",
    "3、注册者信息不一致或提交材料与注册人信息不符"
  ];
}
